<template>
	<view class="mainCon"> 
		<view class="orderList">
			<view class="orderItem" > 
				<view class="orderInfo">
					<view class="infoCell">
						<view class="labelName">
							车牌号（黄）
						</view>
						<view class="labelTag">
							<input v-model="model.carcode" :readonly="true" />
						</view> 
					</view>
					<view class="infoCell">
						<view class="labelName">
							委托单号
						</view>
						<view class="infoCon">
							<input v-model="model.carcode" :readonly="true" />
						</view>
					</view>
					<view class="infoCell">
						<view class="labelName">
							货物装载源头单位：
						</view>
						<view class="infoCon">
							{{item.CARCODE}}
						</view>
					</view> 
					<view class="infoCell">
						<view class="labelName">
							船名/航次
						</view>
						<view class="infoCon">
							{{item.SHIPNAME}}  /  {{item.I_VOYAGE}}
						</view>
					</view> 
					<view class="infoCell">
						<view class="labelName">
							业务属性
						</view>
						<view class="infoCon">
							{{item.TRADE_ID=='1'?'外贸':'内贸'}}
						</view>
					</view>
					<view class="infoCell" v-if="current==2">
						<view class="labelName">
							箱位
						</view>
						<view class="infoCon">
							{{item.CNTR_PLAC}}
						</view>
					</view>
					<view class="infoCell">
						<view class="labelName">
							箱主
						</view>
						<view class="infoCon">
							{{item.XGS}}
						</view>
					</view>
				</view> 
			</view>
		</view> 
	</view>
</template>

<script>
	//:min-scale="17" 
	export default {
		data() { 
			return {
				 
			} 
		},
		onLoad(option) { 
			uni.request({
				url: 'https://api.zlkj-port.com/szgjapi/zlzg/Q/O03PRYMsM5l0PM5?id=' + option.id,
				method: "get", 
				success: (res) => {
					 let marker={
					 	latitude:res.data.rows[0].X,
					 	longitude: res.data.rows[0].Y,
					 	iconPath: '../../static/img/position.png'
					 }
					 this.covers.push(marker);
				}
			})
			 
		},
		methods: {

		}
	}
</script>

<style>
	.content {
		text-align: center;
		height: 1000upx; 
	}
</style>
